<template>
  <el-button style="margin-right: 20px" align='right' @click='goback'>
    <span v-if="isAdd">取消</span>
    <span v-else>返回</span>
  </el-button>
</template>
<script>
  export default {
    props: {
      isAdd: {
        type: Boolean,
        default: false
      },
    },
    created() {
    },
    methods: {
      goback: function () {
        this.$router.back(-1);
      }
    }
  }
</script>
